using System;
using Core.Base;
using Core.Contracts.Enums;
using Core.Contracts.Interfaces;
using Core.Extensions;
using Core.Features;
using Core.Resources;

namespace Core.Items.Robots
{
    
    public sealed class Castel: RobotBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Items.Robots.Arbalest"/> class.
        /// </summary>
        public Castel()
            : base(
            "Castel",
            Traduction.desc_castel,
            FactionsEnum.Pelistal,
            RobotTechnologyLevel.Mk1,
            RobotSizesEnum.Light,
            new ISlot[]
                {
                    new Slot(0,SlotGroupsEnum.Chassis,SlotTypesEnum.Missile, SizesEnum.Small),
                    new Slot(1,SlotGroupsEnum.Chassis,SlotTypesEnum.Missile, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(2,SlotGroupsEnum.Chassis,SlotTypesEnum.Missile, SizesEnum.Small),
                    new Slot(3,SlotGroupsEnum.Chassis,SlotTypesEnum.Turret|SlotTypesEnum.Missile, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules)
                },
            new IFeature<object>[]
                {
                    new AccumulatorCapacity<double>(225),
                    new AccumulatorRechargeTime<double>(120),
                    new CpuPerformance<double>(170),
                    new ReactorPerformance<double>(125),
                    new ArmorAmount<double>(760),
                    new ChemicalResistance<double>(30),
                    new KineticResistance<double>(10),
                    new SeismicResistance<double>(45),
                    new ThermalResistance<double>(150),
                    new SurfaceHitSize<double>(3),
                    new InterferenceEmission<double>(4),
                    new InterferenceMinimum<double>(80),
                    new InterferencePeak<double>(280),
                    new InterferenceRadius<double>(150),
                    new LockingRange<double>(150),
                    new LockingTime<double>(12.50),
                    new MaximumTargets<double>(3),
                    new MissileGuidanceFailure<double>(0.1),
                    new SensorStrength<double>(120),
                    new SignalDetection<double>(120),
                    new SignalMasking<double>(100),
                    new ReloadingTime<double>(10),
                    new CargoCapacity<double>(3.75),
                    new RobotMass<double>(5740),
                    new SlopeCapacity<double>(56),
                    new TopSpeed<double>(64.80),
                    new Volume<double>(12),
                    new DemobilizerResistance<double>(0),
                    new CriticalHitChance<double>(0)
                },
            new IBonusModifier[]
                {
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Robot, FeaturesEnum.LockingTime, -0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Locking time"}, 
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Module, FeaturesEnum.SmallMissileDamage, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Small missile damage"}, 
                    new BonusModifier<BasicRobotics>( FeatureTypesEnum.Robot, FeaturesEnum.AccumulatorRechargeTime, -0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Accumulator recharge time"}, 
                },
            new ICondition<IExtension>[]
                {
                    new ExtensionCondition<PelistalRobotControl>(1), 
                    new ExtensionCondition<BasicRobotics>(1)
                })
        {
        }
        
    }
}